package com.naiterui.ehp.bs.cms.modules.devops.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * @author luao
 * @date 2022/4/27 2:16 PM
 **/
@FeignClient(name = "push", url = "${ehp.domain.push}", configuration = FeignConfiguration.class)
public interface PushFeign {

    @GetMapping("/push/multiPush")
    void pushAll(@RequestParam("userType") String userType, @RequestParam("pushMessage") String pushMessage,
        @RequestParam("linkUrl") String linkUrl) throws BusinessException;
}
